
class FunnyMath:
    def __init__(self, listX):
        self._listX = listX
    
    def sum(self):
        """求和"""
        total = 0
        for x in self._listX:
            total += x
        return total
    
    def average(self):
        """求平均值"""
        return self.sum()/len(self._listX)